package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BannerImageMapper;
import com.ruoyi.system.domain.BannerImage;
import com.ruoyi.system.service.IBannerImageService;

/**
 * 景点轮播图片Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-29
 */
@Service
public class BannerImageServiceImpl implements IBannerImageService 
{
    @Autowired
    private BannerImageMapper bannerImageMapper;

    /**
     * 查询景点轮播图片
     * 
     * @param id 景点轮播图片主键
     * @return 景点轮播图片
     */
    @Override
    public BannerImage selectBannerImageById(String id)
    {
        return bannerImageMapper.selectBannerImageById(id);
    }


    @Override
    public List<BannerImage> selectBannerImageList(BannerImage bannerImage)
    {
        return bannerImageMapper.selectBannerImageList(bannerImage);
    }

    /**
     * 新增景点轮播图片
     * 
     * @param bannerImage 景点轮播图片
     * @return 结果
     */
    @Override
    public int insertBannerImage(BannerImage bannerImage)
    {
        return bannerImageMapper.insertBannerImage(bannerImage);
    }

    /**
     * 修改景点轮播图片
     * 
     * @param bannerImage 景点轮播图片
     * @return 结果
     */
    @Override
    public int updateBannerImage(BannerImage bannerImage)
    {
        return bannerImageMapper.updateBannerImage(bannerImage);
    }

    /**
     * 批量删除景点轮播图片
     * 
     * @param ids 需要删除的景点轮播图片主键
     * @return 结果
     */
    @Override
    public int deleteBannerImageByIds(String[] ids)
    {
        return bannerImageMapper.deleteBannerImageByIds(ids);
    }

    /**
     * 删除景点轮播图片信息
     * 
     * @param id 景点轮播图片主键
     * @return 结果
     */
    @Override
    public int deleteBannerImageById(String id)
    {
        return bannerImageMapper.deleteBannerImageById(id);
    }
}
